package com.servlet.JeuDeLaBiere.Model;

public class Lineaire extends FormeDemande {

	public Lineaire(int nbTours, int deb, int fin) {
		super(nbTours);
		
		double pente = (fin-deb)/nbTours;

		for (int i = 0 ; i<this.getDemande().length ; i++){
			this.setDemande(i,(int) (0.4 + deb + pente*i));
		}
	}



}
